#pragma once
#include "DisplayObject.h"
#include "BezierCurve.h"
#include "Ball.h"

#define count 100

class Board : public DisplayObject
{
private:
	static const int t_count = count;
	//allpoints = 2 curves + 2 corners + one extra end point
	static const int total_points = count * 2 + 3 + 2;

	vector3 * _points;
	vector3 * leftCurvePoints;
	vector3 * rightCurvePoints;

	vector3 _bgColor;
	vector3 _boarderColor;

public:
	Board(void);
	~Board(void);
	void drawMe();
	vector3 getBackColor();
	vector3 getBoarderColor();
	void setColors( vector3 back, vector3 boarder );
	bool isBallinsideBoard( Ball * ball);
private:
	void init( void );
};

